package cc.web.vaaking.common.core;

import cc.web.vaaking.entity.SysVacationRecord;


public class StateMachine {


    public static void goNext(SysVacationRecord sysVacationRecord, boolean app, int roldId) {
        switch (roldId) {
            case 1:
                EventHandler ceoHandler = new CEOHandler(sysVacationRecord, app);
                ceoHandler.handler();
                break;
            case 2:
                EventHandler hrHandler = new HRHandler(sysVacationRecord, app);
                hrHandler.handler();
                break;
        }
    }

    public static String getInitStatus(int roleId) {
        switch (roleId) {
            case 2:
                return "1";
            case 3:
                return "0";
            default:
                return "0";
        }
    }
}
